<template>
  <div class="outer">
    <Tab v-for="tab in tabData" :key="tab.id" v-bind="tab"/>
  </div>
</template>

<script>
import {v4 as uuidv4} from "uuid"

import Tab from "./components/Tab.vue";
export default {
  name: "App",
  components: {
    Tab,
  },
  data() {
    return {
      tabData: [
        {id: uuidv4(), title: "美食", list: ["火锅", "烧烤", "小龙虾"] },
        {id: uuidv4(), title: "游戏", list: ["LoL", "DNF", "CS", "Dota"] },
        {id: uuidv4(), title: "电影", list: ["星际穿越", "阿甘正传", "绿皮书"],},
      ],
    };
  },
};
</script>

<style>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>